package com.tjetc.dao;

import com.tjetc.domain.Nurse;
import com.tjetc.utils.PageInfo;

import java.sql.SQLException;
import java.util.List;

public interface NurseDao {
    Nurse login(String username, String password) throws SQLException;

    int getCount(String name) throws SQLException;

    Nurse findByName(String username) throws SQLException;

    List<Nurse> list(String name, PageInfo<Nurse> pageInfo) throws SQLException;

    List<Nurse> queryByDepid(int depid) throws SQLException;

    void add(Nurse nurse) throws SQLException;

    Nurse getById(int id) throws SQLException;

    int update(Nurse nurse) throws SQLException;

    void del(int id) throws SQLException;

    Nurse getByName(String username) throws SQLException;

    Nurse getpwdById(int id) throws SQLException;

    int updatepwd(Nurse nurse) throws SQLException;
}
